package com.zzyk.main.mapper;


import com.zzyk.main.model.pojo.SysLog;
import com.zzyk.main.model.vo.LogInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface SysLogDao {
    public int insertLog(SysLog sysLog);

    public List<LogInfo> getLogList(
            @Param("operation") String operation,
            @Param("searchValue") String searchValue,
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime, @Param("id") Integer id);

    public List<SysLog> getOperationsByGroup();
}
